libmyc.so:add.o sub.o
	gcc -shared -o libmyc.so add.o sub.o
add.o:add.c
	gcc -fpic -c add.c
sub.o:sub.c
	gcc -fpic -c sub.c
.PHONY:clean
clean:
	rm -rf add.o sub.o libmyc.so mylib mylib.tgz
.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp -rf *.h mylib/include
	cp -rf *.so mylib/lib
	tar -czf mylib.tgz mylib
